package points;

import game.Player;

public class lastFirstLetterMatches implements IPointsGranter {

	@Override
	public void grantPoint( Player player, String lastWord, String newWord) {
		
		if( lastWord != "" && newWord != "" && lastWord.charAt( lastWord.length()-1 ) == newWord.charAt(0) ){
			player.setPoints( player.getPoints()+1 );
		}
		
	}

}
